<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../static/lib/layui/css/layui.css">
    <link rel="stylesheet" href="../static/css/components/form.css">
</head>

<body>
    <div class="contain">
        <div class="form-header">茶华汇中控</div>
        <form class="layui-form" action="">
            <div class="layui-form-item">
                <input type="text" name="title" required lay-verify="required" placeholder="请输入账号" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-item">
                <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-item">
                <input type="text" name="title" required lay-verify="required" placeholder="请输入验证码" autocomplete="off" class="layui-input">
                <span class="code">npmh</span>
            </div>

            <div class="layui-form-item " >
                    <button lay-submit lay-filter="formDemo" class="layui-input" id="formsubmit">登录</button>
            </div>
        </form>
    </div>

    <script src="../static/lib/layui/layui.all.js"></script>
    <!-- <script>
        
        layui.use('form', function () {
            var form = layui.form;

            //监听提交
            form.on('submit(formDemo)', function (data) {
                layer.msg(JSON.stringify(data.field));
                return false;
            });
        });
    </script> -->
</body>

</html>